package Test_0814.ioperations;

import Test_0814.book.Book;
import Test_0814.book.BookShelf;

/**
 * Created with Intellij IDEA
 * Description:
 * User: 星辰
 * Dare: 2024-08-15
 * Time: 9:36
 */
public class ShowOperation implements IoPeration{
    public void work(BookShelf bookshelf){
        System.out.println("显示图书");
        int ret=bookshelf.getUseSize();
        for (int i = 0; i < ret; i++) {
            Book book=bookshelf.getBook(i);
            System.out.println(book);
        }
    }
}
